<?php
class Tweet extends AppModel{
	public $name = 'Tweet';
	public $belongsTo = Array (
		'User'=>Array (
				'className'  => 'User',
				'foreignKey' => 'user_id'
	)
	);
	public $hasOne = 'Place';
	public $hasMany = array(
        'Favorite' => array(
            'className'     => 'Favorite',
            'foreignKey'    => 'tweet_id',
            'conditions'    => '',
            'order'         => 'Favorite.modified DESC',
            'limit'         => '',
            'dependent'     => true
        ),
		'Mention' => array(
				'className'     => 'Mention',
				'foreignKey'    => 'tweet_id',
				'conditions'    => '',
				'order'         => 'Mention.modified DESC',
				'limit'         => '',
				'dependent'     => true
		),
		'Timeline' => array(
				'className'     => 'Timeline',
				'foreignKey'    => 'tweet_id',
				'conditions'    => '',
				'order'         => '',
				'limit'         => '',
				'dependent'     => true
		)
			
    );		
			
	
}